# @Author       : Xu Xiaokang
# @Date         : 2025-08-28 21:08:12

# Project Mode generate bitstream
# run in vivado 2024.2 Tcl Shell
# source "C:/_myJGY/17_Markdown/_myOpenSource/Vivado-Tcl/Tcl-Project Mode/ProjectMode.tcl"

# 设置工程名称
set project_name VCT
set project_folder_name $project_name

# 设置准确的工程文件路径
set project_path "C:/Users/33553/Desktop/VivadoSpeedTest/2024.2/$project_folder_name/$project_name"

puts "======================开始编译=========================="

# 打开工程
open_project $project_path

# 设置Vivado最大线程为32
set_param general.maxThreads 32

# 复位工程
reset_project

# 生成bit流
launch_runs impl_1 -to_step write_bitstream -jobs 32
wait_on_run impl_1

# 打开gui
start_gui